﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FinancePortal.Domain.Model;
using NHibernate.Mapping.ByCode.Conformist;
using NHibernate.Mapping.ByCode;

namespace FinancePortal.Domain.Mapping
{
    public class EntityMapping<T> : ClassMapping<T> where T : Entity
    {
         public EntityMapping()
	     {
             Id(x => x.Id, map =>
                 { 
                     map.Generator(Generators.Identity);
                     map.Column(typeof(T).Name + "Id");
                 });
	     }
    }
}
